package vip.mtdp.base.dal.dao;

import vip.mtdp.base.dal.cond.AppVersionCond;
import vip.mtdp.base.dal.domain.AppVersion;
import vip.mtdp.mybatis.dal.dao.BaseMapper;

/**
 * @description TODO
 * @date 2020/4/5 17:51
 * @auth wangguoqing
 **/
public interface AppVersionMapper extends BaseMapper<Long, AppVersion, AppVersionCond> {

    /**
     * 最后一个强更版本
     * @return
     */
    AppVersion queryLastForcedUpdateVersion(AppVersion appVersion);

    /**
     * 最近一个版本
     * @return
     */
    AppVersion queryLastVersion(AppVersion appVersion);

    /**
     * 根据版本号查询版本信息
     * @return
     */
    AppVersion queryByBuildNo(AppVersion appVersion);

}
